<%
dataKeyType = dataKeyType.replace('int','number').replace("long", "number")
keyType = keyType.replace('int','number').replace("long", "number")
%>
//#region  <%= dataKeyName %>MultipleIndex
    public _<%= dataKeyName %>IndexDict :  Map<<%= dataKeyType %>, Array<<%= keyType %>>>

    private <%= initMethodName %>()
    {
        this._<%= dataKeyName %>IndexDict = this._headJsonData.<%= dataKeyName %>Index;
        //初始化完之后销毁, 减小内存占用
        this._headJsonData.<%= dataKeyName %>Index = undefined
    }

    public  Get<%= className%>With<%=dataKeyName %>Index(indexKey : <%= dataKeyType %>) : <%= className %>
    {
        var ret;
//        if(this._cache<%= dataKeyName %>Dict.has(indexKey))
//        {
//            return this._cache<%= dataKeyName %>Dict.get(indexKey);
//        }
        ret = new Array<<%= className %>>();

        var outData : Array<<%= keyType %>>;
        if(this._<%= dataKeyName %>IndexDict.has(indexKey))
        {
            outData = this._<%= dataKeyName %>IndexDict.get(indexKey)
            for(var v in outData)
            {
                var data = this.GetConfigByKey(outData[v]);
                if(data != null)
                {
                    ret.push(data);
                }
            }
        }
//        this._cache<%= dataKeyName %>Dict.set(indexKey, ret);
        return ret;
    }
//#endregion

